﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;

namespace JzSport.Api.Params
{
    class RegisterPyPhoneParams : IActionParams
    {
        public string Phone { get; set; }
        public string Password { get; set; }
        public string Verifycode { get; set; }

        public void ParseQueryString(HttpRequest request)
        {
            this.Phone = request.QueryString["op:phone"];
            this.Password = request.QueryString["op:password"];
            this.Verifycode = request.QueryString["op:verifycode"];
        }

        public void ParseForm(HttpRequest request)
        {
            this.Phone = request.Form["op:phone"];
            this.Password = request.Form["op:password"];
            this.Verifycode = request.Form["op:verifycode"];
        }
    }
}
